@charset "utf-8";

:root {
    /* 品牌主色 - 健康蓝 */
    --primary-color: #2C5282;
    --primary-gradient: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    --secondary-color: #4299E1;
    --accent-color: #E53E3E;
    
    /* 功能色彩 */
    --success-color: #06D6A0;
    --warning-color: #FFD166;
    --error-color: #E53E3E;
    --info-color: #4ECDC4;
    
    /* 文字色彩 */
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    --text-light: #FFFFFF;
    
    /* 背景色彩 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7FAFC;
    --bg-card: #F7FAFC;
    --border-color: #E2E8F0;
    
    /* 间距系统 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.12);
    
    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0.0, 0.2, 1);
    
    /* 登录页面特有颜色 */
    --gradient-start: #e0f7fa; /* 清爽薄荷绿 */
    --gradient-end: #80deea;   /* 柔和青色 */
    --header-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: rgba(0, 0, 0, 0.2);
    /* 玻璃态效果颜色 */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    animation: gradient-animation 15s ease infinite;
    background-size: 200% 200%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 背景装饰元素 */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

/* --- Header --- */
.login-header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-md); 
}

.logo { 
    width: 40px; 
    height: 40px; 
    transition: transform var(--transition-fast);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.system-title h1 { 
    font-size: 1.25rem; 
    color: var(--primary-color); 
    margin: 0; 
    font-weight: 600;
}

.system-title p { 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    margin: 2px 0 0; 
}

.back-to-home { 
    display: flex; 
    align-items: center; 
    gap: var(--spacing-xs); 
    padding: var(--spacing-sm) var(--spacing-lg); 
    background: var(--primary-gradient);
    color: var(--text-light); 
    text-decoration: none; 
    border-radius: var(--radius-md); 
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.95rem;
}

.back-to-home:hover { 
    background: linear-gradient(135deg, #0077B6 0%, #005577 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.back-to-home i {
    font-size: 0.9rem;
}

/* --- Main Content --- */
.login-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-3xl);
    position: relative;
}

.login-card {
    display: flex;
    width: 950px;
    height: 580px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    /* 玻璃态效果 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.45);
}

.left-panel {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(249, 250, 255, 0.8), rgba(233, 245, 255, 0.9));
    overflow: hidden;
    position: relative;
}

.left-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    animation: rotate 20s infinite linear;
    z-index: 0;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.illustration-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    /* 增强的动画效果 */
    animation:
        medical-breathe 3s ease-in-out infinite,
        enhanced-glow 4s ease-in-out infinite,
        subtle-float 6s ease-in-out infinite;
    transform-origin: center center;
    transition: transform var(--transition-fast);
    /* 确保动画可见 */
    will-change: transform, filter, opacity;
    position: relative;
    z-index: 1;
}

/* 悬停时保持动画继续，仅轻微放大 */
.illustration-img:hover {
    transform: scale(1.05);
}

.right-panel {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-3xl);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

.login-box { 
    width: 100%; 
    padding: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.login-box h2 { 
    font-size: 1.75rem; 
    color: var(--primary-color); 
    margin-bottom: var(--spacing-lg); 
    text-align: center; 
    font-weight: 700;
    position: relative;
}

.login-box h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.input-group { 
    margin-bottom: var(--spacing-lg); 
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-tertiary);
    z-index: 1;
    transition: color var(--transition-fast);
}

.input-group input { 
    width: 100%; 
    padding: 16px 16px 16px 50px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-lg); 
    background-color: var(--bg-secondary); 
    font-size: 1rem; 
    box-sizing: border-box; 
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.2);
    outline: none;
}

.input-group input:focus + .input-icon {
    color: var(--primary-color);
}

.form-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 0.875rem; 
    margin-bottom: var(--spacing-lg); 
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
}

.remember-me input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    border-radius: 4px;
}

.form-footer a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: color var(--transition-fast);
    font-weight: 500;
}

.form-footer a:hover {
    color: #005577;
    text-decoration: underline;
}

.login-btn { 
    width: 100%; 
    padding: var(--spacing-md); 
    border: none; 
    border-radius: var(--radius-lg); 
    background: var(--primary-gradient);
    color: var(--text-light); 
    font-size: 1.125rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-btn:hover { 
    background: linear-gradient(135deg, #0077B6 0%, #005577 100%); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.4);
}

.login-btn:active,
.login-btn.pressed {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 119, 182, 0.3);
}

.register-link {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
    position: relative;
}

.register-link a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

.register-link a:hover {
    color: #005577;
}

.register-link a:hover::after {
    width: 100%;
}


/* --- Footer --- */
.login-footer {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    background-color: var(--footer-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Contact Buttons --- */
.contact-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    z-index: 100;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.contact-item:hover { 
    transform: scale(1.1) translateY(-5px);
    color: #005577;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.contact-item i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.contact-item:hover i {
    color: #005577;
    transform: scale(1.2);
}

/* 悬浮提示样式 */
.contact-item {
    position: relative;
}

.contact-item::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

/* 电话咨询悬浮提示 */
.phone-contact::after {
    content: attr(data-phone);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.phone-contact::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 7px;
    border: 6px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

/* 联系我们悬浮提示 */
.qr-contact::after {
    content: '';
    background-image: url('images/qr-sample.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: white;
    border: 2px solid #e0e0e0;
}

/* 悬浮时显示提示 */
.contact-item:hover::after,
.contact-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 小弹窗样式 */
.toast-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.toast-mask.show {
    opacity: 1;
}

.toast {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background-color: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    opacity: 0;
    transition: all var(--transition-fast);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 显示动画 */
.toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* 成功弹窗样式 */
.toast.success {
    background: linear-gradient(135deg,#22c55e);
}

/* 错误弹窗样式 */
.toast.error {
    background: linear-gradient(135deg,#ef4444);
}

/* 图标样式 */
.toast-icon {
    font-size: 1.25rem;
}

/* 文本样式 */
.toast-text {
    flex: 1;
    font-weight: 500;
}

/* ========== 登录页面插图动画效果 ========== */

/* 增强的医疗呼吸效果 - 更明显的缩放和透明度变化 */
@keyframes medical-breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* 轻微浮动效果 */
@keyframes subtle-float {
    0%, 100% {
        transform: translateY(15px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 增强的光晕效果 - 医疗主题配色，更强对比度 */
@keyframes enhanced-glow {
    0%, 100% {
        filter: drop-shadow(0 8px 16px rgba(0, 150, 255, 0.15))
                drop-shadow(0 4px 8px rgba(0, 200, 150, 0.15));
    }
    25% {
        filter: drop-shadow(0 12px 24px rgba(0, 180, 255, 0.35))
                drop-shadow(0 6px 12px rgba(0, 220, 180, 0.25));
    }
    50% {
        filter: drop-shadow(0 16px 32px rgba(0, 123, 255, 0.4))
                drop-shadow(0 8px 16px rgba(0, 255, 200, 0.3));
    }
    75% {
        filter: drop-shadow(0 12px 24px rgba(0, 180, 255, 0.35))
                drop-shadow(0 6px 12px rgba(0, 220, 180, 0.25));
    }
}

/* 响应式优化 - 在小屏幕上减少动画强度 */
@media (max-width: 768px) {
    .illustration-img {
        animation:
            medical-breathe-mobile 4s ease-in-out infinite,
            enhanced-glow-mobile 6s ease-in-out infinite,
            subtle-float-mobile 8s ease-in-out infinite;
    }

    @keyframes medical-breathe-mobile {
        0%, 100% {
            transform: scale(1);
            opacity: 0.95;
        }
        50% {
            transform: scale(1.01);
            opacity: 1;
        }
    }

    @keyframes subtle-float-mobile {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-4px);
        }
    }

    @keyframes enhanced-glow-mobile {
        0%, 100% {
            filter: drop-shadow(0 4px 8px rgba(0, 150, 255, 0.15));
        }
        50% {
            filter: drop-shadow(0 8px 16px rgba(0, 123, 255, 0.25));
        }
    }
    
    /* 移动端响应式调整 */
    .login-card {
        flex-direction: column;
        height: auto;
        width: 90%;
        max-width: 500px;
    }
    
    .left-panel, .right-panel {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .left-panel {
        display: none; /* 在小屏幕上隐藏插画 */
    }
    
    .login-main {
        padding: var(--spacing-md);
    }
    
    .login-box h2 {
        font-size: 1.5rem;
    }
    
    .input-group input {
        padding: 14px 14px 14px 45px;
    }
    
    .input-icon {
        left: 12px;
    }
    
    .social-icons {
        gap: var(--spacing-md);
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .toast {
        min-width: 250px;
        font-size: 0.875rem;
        padding: 14px 20px;
    }
}

/* 减少动画偏好设置支持 */
@media (prefers-reduced-motion: reduce) {
    .illustration-img {
        animation: none;
    }

    .illustration-img:hover {
        transform: none;
    }
    
    .login-card {
        transition: none;
    }
    
    .login-card:hover {
        transform: none;
    }
    
    .logo {
        animation: none;
    }
    
    .toast,
    .toast-mask {
        transition: none;
    }
    
    .toast.show {
        transform: translate(-50%, 0);
    }
}

/* 页脚样式 */
.login-footer {
    background: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-sm) var(--spacing-xl);
    font-size: 0.75rem;
    color: var(--text-light);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.version-info {
    margin-bottom: var(--spacing-xs);
}

.version-info span {
    margin: 0 var(--spacing-sm);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 var(--spacing-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #4cc9f0;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .illustration {
        display: none;
    }
    
    .login-container {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 100%;
    }
    
    header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .contact-buttons {
        display: none;
    }
    
    .login-main {
        padding: var(--spacing-sm);
    }
    
    .login-card {
        width: 95%;
        border-radius: var(--radius-lg);
    }
    
    .right-panel {
        padding: var(--spacing-md);
    }
    
    .login-box h2 {
        font-size: 1.375rem;
    }
    
    .login-btn {
        padding: var(--spacing-sm);
        font-size: 2rem;
    }
    
    .system-title h1 {
        font-size: 1.125rem;
    }
    
    .system-title p {
        font-size: 0.6875rem;
    }
    
    .back-to-home {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .back-to-home i {
        font-size: 0.75rem;
    }
    
    .social-login {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }
    
    .social-icons {
        gap: var(--spacing-sm);
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .toast {
        min-width: 200px;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        padding: 12px 16px;
        font-size: 0.8125rem;
    }
    
    .toast.show {
        transform: translateX(-50%) scale(1);
    }
    
    .login-footer {
        padding: var(--spacing-sm);
        font-size: 0.6875rem;
    }
}